home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
A-B
/
AnimationStak.cpt
/
DragTracer
/
card_4482.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
12KB
|
412 lines
-- card: 4482 from stack: in
-- bmap block id: 5368
-- flags: 0000
-- background id: 2775
-- name: example
----- HyperTalk script -----
on closecard
hide card field "Narration"
end closecard
-- part 1 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=258 top=36 right=61 bottom=445
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Show me some examples...
----- HyperTalk script -----
on mouseUp
choose brush tool
set pattern to 12
set dragSpeed to 0
show card field "Narration"
put "This is the path of the instructional demo." into item 1 of card field "narration"
repeat with num=1 to the number of lines of card field "Invisible data"
put line num of card field "Invisible data" into it
if it is empty then exit repeat
do it
end repeat
doMenu revert
put "Here's one example of what might be done." into item 1 of card field "narration"
Drag from 117,197 to 118,196
Drag from 118,196 to 122,193
Drag from 122,193 to 135,185
Drag from 135,185 to 144,174
Drag from 144,174 to 155,159
Drag from 155,159 to 165,142
Drag from 165,142 to 166,125
Drag from 166,125 to 165,120
Drag from 165,120 to 158,126
Drag from 158,126 to 153,142
Drag from 153,142 to 151,161
Drag from 151,161 to 147,179
Drag from 147,179 to 143,195
Drag from 143,195 to 139,212
Drag from 139,212 to 136,231
Drag from 136,231 to 134,233
Drag from 134,233 to 140,217
Drag from 140,217 to 146,201
Drag from 146,201 to 157,188
Drag from 157,188 to 171,189
Drag from 171,189 to 174,203
Drag from 174,203 to 173,215
Drag from 173,215 to 173,228
Drag from 173,228 to 180,233
Drag from 180,233 to 193,229
Drag from 193,229 to 209,217
Drag from 209,217 to 216,205
Drag from 216,205 to 219,189
Drag from 219,189 to 217,185
Drag from 217,185 to 208,193
Drag from 208,193 to 205,205
Drag from 205,205 to 204,217
Drag from 204,217 to 207,232
Drag from 207,232 to 217,235
Drag from 217,235 to 233,232
Drag from 233,232 to 245,220
Drag from 245,220 to 258,206
Drag from 258,206 to 269,186
Drag from 269,186 to 278,165
Drag from 278,165 to 282,148
Drag from 282,148 to 284,133
Drag from 284,133 to 282,129
Drag from 282,129 to 279,135
Drag from 279,135 to 275,150
Drag from 275,150 to 272,168
Drag from 272,168 to 267,184
Drag from 267,184 to 264,202
Drag from 264,202 to 264,217
Drag from 264,217 to 272,228
Drag from 272,228 to 279,228
Drag from 279,228 to 291,224
Drag from 291,224 to 303,214
Drag from 303,214 to 313,197
Drag from 313,197 to 321,176
Drag from 321,176 to 327,155
Drag from 327,155 to 328,139
Drag from 328,139 to 325,133
Drag from 325,133 to 322,133
Drag from 322,133 to 317,144
Drag from 317,144 to 316,159
Drag from 316,159 to 315,181
Drag from 315,181 to 314,201
Drag from 314,201 to 314,216
Drag from 314,216 to 316,225
Drag from 316,225 to 328,230
Drag from 328,230 to 339,218
Drag from 339,218 to 349,202
Drag from 349,202 to 356,191
Drag from 356,191 to 366,190
Drag from 366,190 to 370,190
Drag from 370,190 to 365,189
Drag from 365,189 to 355,195
Drag from 355,195 to 351,210
Drag from 351,210 to 354,224
Drag from 354,224 to 360,232
Drag from 360,232 to 374,235
Drag from 374,235 to 381,228
Drag from 381,228 to 385,216
Drag from 385,216 to 384,204
Drag from 384,204 to 377,194
Drag from 377,194 to 372,195
Drag from 372,195 to 370,203
Drag from 370,203 to 380,208
Drag from 380,208 to 390,204
Drag from 390,204 to 397,197
Drag from 397,197 to 400,189
Drag from 400,189 to 401,187
speak "Hello."
doMenu revert
choose round rect tool
set centered to false
set pattern to 1
set filled to false
set multiple to true
set dragSpeed to 500
put "another" into second word of line 1 of item 1 of card field "narration"
Drag from 76,105 to 438,143
Drag from 438,143 to 18,239
Drag from 18,239 to 445,256
doMenu revert
choose regular polygon tool
set polysides to 5
set centered to true
put "And still another example." into item 1 of card field "narration"
Drag from 255,154 to 255,151
Drag from 255,151 to 246,134
Drag from 246,134 to 235,133
Drag from 235,133 to 222,137
Drag from 222,137 to 215,146
Drag from 215,146 to 211,160
Drag from 211,160 to 211,178
Drag from 211,178 to 214,195
Drag from 214,195 to 225,210
Drag from 225,210 to 239,223
Drag from 239,223 to 271,229
Drag from 271,229 to 292,228
Drag from 292,228 to 319,221
Drag from 319,221 to 342,213
doMenu revert
set filled to true
set dragSpeed to 0
put 10 into count
put "This is the last example. Add some of your own." into item 1 of card field "narration"
repeat 3 times
choose oval tool
set centered to false
set multiple to false
set pattern to count
Drag from 310,220 to 380,170
choose lasso tool
click at 350,200 with commandKey
Drag from 361,201 to 361,200
Drag from 361,200 to 361,185
Drag from 361,185 to 357,166
Drag from 357,166 to 346,141
Drag from 346,141 to 331,123
Drag from 331,123 to 313,108
Drag from 313,108 to 300,106
Drag from 300,106 to 283,110
Drag from 283,110 to 268,119
Drag from 268,119 to 259,134
Drag from 259,134 to 254,154
Drag from 254,154 to 251,175
Drag from 251,175 to 247,190
Drag from 247,190 to 247,196
Drag from 247,196 to 245,187
Drag from 245,187 to 238,168
Drag from 238,168 to 228,153
Drag from 228,153 to 216,142
Drag from 216,142 to 210,141
Drag from 210,141 to 201,144
Drag from 201,144 to 197,151
Drag from 197,151 to 195,160
Drag from 195,160 to 194,173
Drag from 194,173 to 193,185
Drag from 193,185 to 193,197
Drag from 193,197 to 193,201
Drag from 193,201 to 194,197
Drag from 194,197 to 204,181
Drag from 204,181 to 219,170
Drag from 219,170 to 238,165
Drag from 238,165 to 259,165
Drag from 259,165 to 288,166
Drag from 288,166 to 306,172
Drag from 306,172 to 315,181
Drag from 315,181 to 330,196
Drag from 330,196 to 331,200
Drag from 331,200 to 331,203
Drag from 331,203 to 332,203
subtract 1 from count
end repeat
doMenu revert
choose browse tool
hide card field "Narration"
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=449 top=296 right=321 bottom=477
-- title width / last selected line: 0
-- icon id / first selected line: 1012 / 1012
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
pop card
end mouseUp
-- part 6 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=228 top=298 right=321 bottom=254
-- title width / last selected line: 0
-- icon id / first selected line: 1014 / 1014
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Prev
----- HyperTalk script -----
on mouseUp
go to prev card
end mouseUp
-- part 7 (field)
-- low flags: 80
-- high flags: 2004
-- rect: left=84 top=268 right=291 bottom=427
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 8448
-- line height: 16
-- part name: narration
-- part 9 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=463 top=61 right=292 bottom=488
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
go to first card
end mouseUp
-- part 12 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=47 top=36 right=61 bottom=222
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Show me how it works...
----- HyperTalk script -----
on mouseUp
put return into card field "Visible data"
show card field "Visible data"
show card field "'little help"
choose brush tool
set the pattern to 12
repeat with num=1 to the number of lines in card field "Invisible data"
put word 3 of line num of card field "Invisible data" into x
click at x
put line num of card field "Invisible data" into line num of card field "Visible data"
end repeat
doMenu revert
choose browse tool
put return into card field "Visible data"
hide card field "Visible data"
hide card field "'little help"
end mouseUp
-- part 13 (field)
-- low flags: 80
-- high flags: 0007
-- rect: left=224 top=69 right=224 bottom=460
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Invisible data
-- part 14 (field)
-- low flags: 00
-- high flags: 0007
-- rect: left=226 top=76 right=288 bottom=460
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Visible data
-- part 15 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=21 top=234 right=288 bottom=221
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: 'little help
-- part contents for card part 7
----- text -----
This is the last example. Add some of your own.
-- part contents for card part 13
----- text -----
Drag from 142,120 to 138,126
Drag from 138,126 to 135,134
Drag from 135,134 to 134,138
Drag from 134,138 to 132,134
Drag from 132,134 to 124,129
Drag from 124,129 to 117,128
Drag from 117,128 to 108,130
Drag from 108,130 to 100,135
Drag from 100,135 to 92,147
Drag from 92,147 to 86,161
Drag from 86,161 to 85,176
Drag from 85,176 to 89,191
Drag from 89,191 to 99,202
Drag from 99,202 to 109,209
Drag from 109,209 to 119,210
Drag from 119,210 to 122,208
Drag from 122,208 to 128,203
Drag from 128,203 to 135,203
Drag from 135,203 to 143,205
Drag from 143,205 to 152,209
Drag from 152,209 to 162,210
Drag from 162,210 to 171,208
Drag from 171,208 to 177,201
Drag from 177,201 to 181,190
Drag from 181,190 to 184,179
Drag from 184,179 to 184,177
Drag from 184,177 to 174,172
Drag from 174,172 to 169,161
Drag from 169,161 to 170,148
Drag from 170,148 to 174,142
Drag from 174,142 to 178,141
Drag from 178,141 to 180,141
Drag from 180,141 to 173,133
Drag from 173,133 to 162,130
Drag from 162,130 to 152,130
Drag from 152,130 to 146,132
-- part contents for card part 14
----- text -----
-- part contents for card part 15
----- text -----
As you trace a path, like the one above, the coordinates are stored in a field like this. -->